﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

using Unis.Framework.ORM.Attributes;
using System.ComponentModel.DataAnnotations;


namespace KingRoad.EPM.PersonnelLogEntity.Model
{
    /// <summary> 
    /// 文件生成时间 2017/2/16 18:40:45
    /// </summary> 
    [Serializable]
    [ModelMap("Plm_Turnover", new string[] { "T_ID" })]
    public class PlmTurnoverInfo : BaseEntity
    {
        public PlmTurnoverInfo()
        {

        }


        private string _tId;
        /// <summary>
        /// 人员变动主键
        /// </summary>
        [ColumnMap("T_ID", System.Data.DbType.String)]
        public string T_ID
        {
            get { return _tId; }
            set
            {
                if (object.Equals(this._tId, value) != true)
                {
                    this._tId = value;
                    this.RaisePropertyChanged("T_ID");
                }
            }
        }


        private int _tUserid;
        /// <summary>
        /// 操作人ID
        /// </summary>
        [ColumnMap("T_UserID", System.Data.DbType.Int32)]
        public int T_UserID
        {
            get { return _tUserid; }
            set
            {
                if (object.Equals(this._tUserid, value) != true)
                {
                    this._tUserid = value;
                    this.RaisePropertyChanged("T_UserID");
                }
            }
        }


        private string _tUsername;
        /// <summary>
        /// 操作人名
        /// </summary>
        [ColumnMap("T_UserName", System.Data.DbType.String)]
        public string T_UserName
        {
            get { return _tUsername; }
            set
            {
                if (object.Equals(this._tUsername, value) != true)
                {
                    this._tUsername = value;
                    this.RaisePropertyChanged("T_UserName");
                }
            }
        }


        private DateTime _tUpdatetime;
        /// <summary>
        /// 操作时间
        /// </summary>
        [ColumnMap("T_UpdateTime", System.Data.DbType.DateTime)]
        public DateTime T_UpdateTime
        {
            get { return _tUpdatetime; }
            set
            {
                if (object.Equals(this._tUpdatetime, value) != true)
                {
                    this._tUpdatetime = value;
                    this.RaisePropertyChanged("T_UpdateTime");
                }
            }
        }


        private string _tType;
        /// <summary>
        /// 人员变动类型
        /// </summary>
        [ColumnMap("T_Type", System.Data.DbType.String)]
        public string T_Type
        {
            get { return _tType; }
            set
            {
                if (object.Equals(this._tType, value) != true)
                {
                    this._tType = value;
                    this.RaisePropertyChanged("T_Type");
                }
            }
        }


        private int _tSectionid;
        /// <summary>
        /// 所属标段ID
        /// </summary>
        [ColumnMap("T_SectionID", System.Data.DbType.Int32)]
        public int T_SectionID
        {
            get { return _tSectionid; }
            set
            {
                if (object.Equals(this._tSectionid, value) != true)
                {
                    this._tSectionid = value;
                    this.RaisePropertyChanged("T_SectionID");
                }
            }
        }


        private string _tSectionname;
        /// <summary>
        /// 所属标段名称
        /// </summary>
        [ColumnMap("T_SectionName", System.Data.DbType.String)]
        public string T_SectionName
        {
            get { return _tSectionname; }
            set
            {
                if (object.Equals(this._tSectionname, value) != true)
                {
                    this._tSectionname = value;
                    this.RaisePropertyChanged("T_SectionName");
                }
            }
        }


        private string _tPosition;
        /// <summary>
        /// 变动职位
        /// </summary>
        [ColumnMap("T_Position", System.Data.DbType.String)]
        public string T_Position
        {
            get { return _tPosition; }
            set
            {
                if (object.Equals(this._tPosition, value) != true)
                {
                    this._tPosition = value;
                    this.RaisePropertyChanged("T_Position");
                }
            }
        }


        private int _tUnitid;
        /// <summary>
        /// 申报监理或者施工单位ID
        /// </summary>
        [ColumnMap("T_UnitID", System.Data.DbType.Int32)]
        public int T_UnitID
        {
            get { return _tUnitid; }
            set
            {
                if (object.Equals(this._tUnitid, value) != true)
                {
                    this._tUnitid = value;
                    this.RaisePropertyChanged("T_UnitID");
                }
            }
        }


        private string _tUnitname;
        /// <summary>
        /// 申报监理或者施工单位名称
        /// </summary>
        [ColumnMap("T_UnitName", System.Data.DbType.String)]
        public string T_UnitName
        {
            get { return _tUnitname; }
            set
            {
                if (object.Equals(this._tUnitname, value) != true)
                {
                    this._tUnitname = value;
                    this.RaisePropertyChanged("T_UnitName");
                }
            }
        }


        private string _tApplicant;
        /// <summary>
        /// 申报人
        /// </summary>
        [ColumnMap("T_Applicant", System.Data.DbType.String)]
        public string T_Applicant
        {
            get { return _tApplicant; }
            set
            {
                if (object.Equals(this._tApplicant, value) != true)
                {
                    this._tApplicant = value;
                    this.RaisePropertyChanged("T_Applicant");
                }
            }
        }


        private DateTime _tDeclarationdate;
        /// <summary>
        /// 申报日期
        /// </summary>
        [ColumnMap("T_DeclarationDate", System.Data.DbType.Date)]
        public DateTime T_DeclarationDate
        {
            get { return _tDeclarationdate; }
            set
            {
                if (object.Equals(this._tDeclarationdate, value) != true)
                {
                    this._tDeclarationdate = value;
                    this.RaisePropertyChanged("T_DeclarationDate");
                }
            }
        }


        private string _tExistingstaff;
        /// <summary>
        /// 现职人员姓名
        /// </summary>
        [ColumnMap("T_ExistingStaff", System.Data.DbType.String)]
        public string T_ExistingStaff
        {
            get { return _tExistingstaff; }
            set
            {
                if (object.Equals(this._tExistingstaff, value) != true)
                {
                    this._tExistingstaff = value;
                    this.RaisePropertyChanged("T_ExistingStaff");
                }
            }
        }


        private string _tChangepersonnel;
        /// <summary>
        /// 变更人员姓名
        /// </summary>
        [ColumnMap("T_ChangePersonnel", System.Data.DbType.String)]
        public string T_ChangePersonnel
        {
            get { return _tChangepersonnel; }
            set
            {
                if (object.Equals(this._tChangepersonnel, value) != true)
                {
                    this._tChangepersonnel = value;
                    this.RaisePropertyChanged("T_ChangePersonnel");
                }
            }
        }


        private string _tReason;
        /// <summary>
        /// 变更原因
        /// </summary>
        [Required(ErrorMessage = "*")]
        [StringLength(500, ErrorMessage = "字符长度超出范围")]
        [ColumnMap("T_Reason", System.Data.DbType.String)]
        public string T_Reason
        {
            get { return _tReason; }
            set
            {
                if (object.Equals(this._tReason, value) != true)
                {
                    this._tReason = value;
                    this.RaisePropertyChanged("T_Reason");
                }
            }
        }


        private string _tState;
        /// <summary>
        /// 审批状态
        /// </summary>
        [ColumnMap("T_State", System.Data.DbType.String)]
        public string T_State
        {
            get { return _tState; }
            set
            {
                if (object.Equals(this._tState, value) != true)
                {
                    this._tState = value;
                    this.RaisePropertyChanged("T_State");
                }
            }
        }


        private string _tApprover;
        /// <summary>
        /// 审批人
        /// </summary>
        [ColumnMap("T_Approver", System.Data.DbType.String)]
        public string T_Approver
        {
            get { return _tApprover; }
            set
            {
                if (object.Equals(this._tApprover, value) != true)
                {
                    this._tApprover = value;
                    this.RaisePropertyChanged("T_Approver");
                }
            }
        }


        private DateTime _tApprovaltime;
        /// <summary>
        /// 审批时间
        /// </summary>
        [ColumnMap("T_ApprovalTime", System.Data.DbType.DateTime)]
        public DateTime T_ApprovalTime
        {
            get { return _tApprovaltime; }
            set
            {
                if (object.Equals(this._tApprovaltime, value) != true)
                {
                    this._tApprovaltime = value;
                    this.RaisePropertyChanged("T_ApprovalTime");
                }
            }
        }


        private string _tApprovalopinion;
        /// <summary>
        /// 审批意见
        /// </summary>
        [Required(ErrorMessage = "*")]
        [StringLength(500, ErrorMessage = "字符长度超出范围")]
        [ColumnMap("T_ApprovalOpinion", System.Data.DbType.String)]
        public string T_ApprovalOpinion
        {
            get { return _tApprovalopinion; }
            set
            {
                if (object.Equals(this._tApprovalopinion, value) != true)
                {
                    this._tApprovalopinion = value;
                    this.RaisePropertyChanged("T_ApprovalOpinion");
                }
            }
        }


        private string _tNowProfessional;
        /// <summary>
        /// 现职人员职称
        /// </summary>
        [ColumnMap("T_NowProfessional", System.Data.DbType.String)]
        public string T_NowProfessional
        {
            get { return _tNowProfessional; }
            set
            {
                if (object.Equals(this._tNowProfessional, value) != true)
                {
                    this._tNowProfessional = value;
                    this.RaisePropertyChanged("T_NowProfessional");
                }
            }
        }


        private string _tNowLicenseNum;
        /// <summary>
        /// 现职人员证书编号
        /// </summary>
        [ColumnMap("T_NowLicenseNum", System.Data.DbType.String)]
        public string T_NowLicenseNum
        {
            get { return _tNowLicenseNum; }
            set
            {
                if (object.Equals(this._tNowLicenseNum, value) != true)
                {
                    this._tNowLicenseNum = value;
                    this.RaisePropertyChanged("T_NowLicenseNum");
                }
            }
        }



        private string _tChangeProfessional;
        /// <summary>
        /// 变更人员职称
        /// </summary>
        [ColumnMap("T_ChangeProfessional", System.Data.DbType.String)]
        public string T_ChangeProfessional
        {
            get { return _tChangeProfessional; }
            set
            {
                if (object.Equals(this._tChangeProfessional, value) != true)
                {
                    this._tChangeProfessional = value;
                    this.RaisePropertyChanged("T_ChangeProfessional");
                }
            }
        }



        private string _tChangeLicenseNum;
        /// <summary>
        /// 变更人员证书编号
        /// </summary>
        [ColumnMap("T_ChangeLicenseNum", System.Data.DbType.String)]
        public string T_ChangeLicenseNum
        {
            get { return _tChangeLicenseNum; }
            set
            {
                if (object.Equals(this._tChangeLicenseNum, value) != true)
                {
                    this._tChangeLicenseNum = value;
                    this.RaisePropertyChanged("T_ChangeLicenseNum");
                }
            }
        }


        private int _assist_ID;
        /// <summary>
        /// 附件id
        /// </summary>
        [ColumnMap("Assist_ID", System.Data.DbType.Int32)]
        public int Assist_ID
        {
            get { return _assist_ID; }
            set
            {
                if (object.Equals(this._assist_ID, value) != true)
                {
                    this._assist_ID = value;
                    this.RaisePropertyChanged("Assist_ID");
                }
            }
        }

    }
}



